package com.itheima.utils;

import com.itheima.pojo.User;

public class ThreadHolder {
    private static final ThreadLocal<User> TOKEN_TAKER=new ThreadLocal<>();
    public static void set(User user){
        TOKEN_TAKER.set(user);
    }
    public static User get(){
        return TOKEN_TAKER.get();
    }
}
